package com.example.stock.comm;

public enum AssetEnum {
    //指数
    INDEX,
    //场内基金
    FUND,
    //股票
    STOCK,
    //可转债
    CB;

    public static AssetEnum getByNameExt(String name) {
        for (AssetEnum value : AssetEnum.values()) {
            if (value.name().equalsIgnoreCase(name)) {
                return value;
            }
        }
        throw new RuntimeException("不包含该枚举");
    }
}
